#
#  makefile for AmazOne
#  by mikejiang
#  copyright (c) mikejiang
#  2012-2050
#

CPP =	g++
CFLAGS =  -pipe -g -W -Wall \
		  -Wpointer-arith \
		  -Wno-unused-parameter \
		  -Wunused-function \
		  -Wunused-variable \
		  -Wunused-value \
		  -Werror

INC_DIR = src/common

TARGET = build/amazone

default: love

build/conf.o: src/common/conf.cc
	$(CPP) -I$(INC_DIR) -c $? -o build/conf.o

# As you expected, just 'make love'
love: build/conf.o
	$(CPP) -I$(INC_DIR) src/main.cc -o $(TARGET)

clean:
	rm -rf build/*

